package com.base.web.auth.service;

import com.base.web.core.basic.service.BasicService;
import com.base.web.model.master.auth.User;
import com.base.web.model.master.auth.UserRole;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author: RENTIE
 * Date: 2018-07-05 8:55
 */
public interface UserService extends BasicService<User> {

    /**
     * 用户角色绑定
     * @param userId
     * @param userRoles
     * @return
     */
    Integer roleBinding(String userId, List<UserRole> userRoles);

    List<String> queryRolesByLoginName(String loginName);

    List<String> queryPermissionsByLoginName(String loginName);
}
